package com.ccsoft.zknote.pojo;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author chanchaw
 * @create 2023-07-08 20:52
 */
@Table("z_user")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class User {
    @Id(keyType = KeyType.Auto)
    private Integer id;
    private String email;
    private String password;
    private String nickname;
    @Column("head_pic")
    private String headPic;
    @Column(onInsertValue = "0")
    private Integer level;// 0普通用户，1VIP用户
    private Date time;
    @Column(onInsertValue = "1")
    private Integer status;// 0表示锁定，1正常
    private String pwd;// 明文密码
}
